﻿using System;

namespace EvaluationSystem
{
    public partial class Logoff : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //TODO:清空所有session
           

            if(!IsPostBack)
            {
                if (Request.QueryString["type"] != null)
                {
                    string strType = Request.QueryString["type"].ToString();
                    
                    if(strType.Equals("s"))
                    {
                        Response.Redirect("~/System/Login.aspx");
                    }
                    else if(strType.Equals("e"))
                    {
                        Response.Redirect("~/Enterprise/EnterpriseLogin.aspx");
                    }        
                    else
                    {
                        Response.Write("<script language='javascript'>window.close()</script>");
                    }
                }
            }
        }
    }
}